package com.gwt.theOne.theLocal.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.gwt.theOne.theLocal.shared.CurrentWeather;
import com.gwt.theOne.theLocal.shared.DiggInfo;
import com.gwt.theOne.theLocal.shared.GoogleNews;
import com.gwt.theOne.theLocal.shared.LoginInfo;

@RemoteServiceRelativePath("localData")
public interface FetchDataService extends RemoteService {

	DiggInfo[] getDiggInfo(String city, boolean isSortByDate, boolean isIncludeNeighbours);
	
	String[][] getUserComments(String location, boolean isIncNeighborChked) ;
	
	Boolean loadLocationNames();
	
	String[] getLocationNames();
	
	Boolean addUserComment(String locName, String nickname, String emailAddress,
			String commentHtml);
	
	GoogleNews[] getNews(String cityname, boolean sortedByRelevance, boolean includeNearbyCities);
	
	LoginInfo validateUserLogin(String requestUri);
	
	Boolean insertNearbyPlacesIntoDatabase();
	
	CurrentWeather getWeatherNews(String name);
}
